package cn.bugstack.infrastructure.persistent.dao;

import cn.bugstack.infrastructure.persistent.po.Strategy;
import cn.bugstack.infrastructure.persistent.po.StrategyAward;
import cn.bugstack.infrastructure.persistent.po.StrategyRule;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Fuzhengwei bugstack.cn @小傅哥
 * @description 策略规则 DAO
 * @create 2023-12-16 13:25
 */
@Mapper
public interface IStrategyRuleDao {

    List<StrategyRule> queryStrategyRuleList();

    //根据StrategyRule拿到规则数据库对象实体StrategyRule
    StrategyRule queryStrategyRule(StrategyRule strategyRule);

    //根据规则名称拿到规则详情
    String queryStrategyRuleValue(StrategyRule strategyRule);
    //根据策略奖品的实体查询奖品的规则
    String queryStrategyAwardRuleModels(StrategyAward strategyAward);
}
